export const TYPE = 2
export const statusList = [
  {
    value: '0',
    label: '学生发起运营未读'
  },
  {
    value: '1',
    label: '运营已读'
  },
  {
    value: '2',
    label: '运营回复'
  },
  {
    value: '3',
    label: '学生已读'
  },
  {
    value: '4',
    label: '学生回复运营未读'
  },
  {
    value: '5',
    label: '系统未读'
  },
  {
    value: '6',
    label: '系统已读'
  }
]
export const leftSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '留言ID',
    keyIndex: 'id',
    placeholder: '请输入ID',
    span: 6,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '标题',
    keyIndex: 'title',
    placeholder: '请输入标题',
    span: 6,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '用户',
    keyIndex: 'studentName',
    placeholder: '请输入学生姓名',
    span: 6,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '手机号码',
    keyIndex: 'phone',
    placeholder: '请输入手机号码',
    // rules: { required: true, message: '请输入第一个输入框的内容', trigger: 'change' },
    span: 6,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '处理人',
    keyIndex: 'updater',
    placeholder: '请输入处理人',
    // rules: { required: true, message: '请输入第一个输入框的内容', trigger: 'change' },
    span: 6,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: statusList,
    label: '状态',
    keyIndex: 'status',
    placeholder: '请选择状态',
    span: 6,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [],
    label: '类型',
    keyIndex: 'type',
    placeholder: '请选择类型',
    span: 6,
    inputWidth: '100%',
    size: 'small'
  }
]

export const middleSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '',
    keyIndex: 'name',
    placeholder: '请输入分类名称',
    span: 8,
    visible: true
  }
]

export const addColumnConfig = [
  {
    type: 'input',
    value: '',
    label: '名称',
    keyIndex: 'name',
    placeholder: '输入名称。10字以内',
    span: 24,
    rules: { required: true, message: '请输入名称', trigger: 'change' },
    visible: true,
    inputWidth: '300px',
    inputRef: 'name',
    maxlength: 10,
    showWordLimit: true,
    inputType: 'text'
  },
  {
    type: 'radio',
    value: '0',
    label: '发布状态',
    keyIndex: 'status',
    span: 24,
    options: [
      {
        value: '1',
        label: '发布'
      },
      {
        value: '0',
        label: '不发布'
      }
    ]
  }
]

export const leftTableConfig = {
  colums: [
    {
      props: 'id',
      label: '留言ID',
      width: '200',
      width: '80'
    },
    {
      props: 'title',
      label: '标题'

    },
    {
      props: 'studentName',
      label: '学生'
    },
    {
      props: 'phone',
      label: '手机号码'
    },
    {
      props: 'createTimeStr',
      label: '提交时间',
      sortable: true
    },
    {
      props: 'reply',
      label: '处理人'
    },
    {
      props: 'replyTimeStr',
      label: '处理时间',
      sortable: true
    },
    {
      props: 'typeName',
      label: '类型'
    },
    {
      props: 'statusStr',
      label: '状态'
    }
  ],
  showSelection: true,
  showIndex: true
}

export const resultClassifiyConfig = {
  colums: [
    {
      props: 'name',
      label: '分类名称'
    },
    {
      props: 'num',
      label: '数量',
      sortable: true
    },
    {
      props: 'publishTimeStr',
      label: '上架时间',
      sortable: true
    },
    {
      props: 'updateTimeStr',
      label: '最近更新时间',
      sortable: true
    },
    {
      props: 'creator',
      label: '创建人'
    }
  ]
}

export const recycleBinConfig = {
  colums: [
    {
      props: 'name',
      label: '类型名称',
      sortable: true
    },
    {
      props: 'num',
      label: '数量'
    },
    {
      props: 'statusStr',
      label: '发布状态',
      sortable: true
    },
    {
      props: 'updateTimeStr',
      label: '删除时间'
    },
    // {
    //   props: "reply",
    //   label: "最近操作"
    // },
    {
      props: 'creator',
      label: '创建人'
    }
  ],
  showIndex: true
}
